<?php include_once VIEWPATH.'common/dialog.php'; ?>
<script type="text/javascript">
    function on_submit(){

        $('form').submit();
    }
    $("#edit_goods").on("hidden.bs.modal", function() {
        $(this).removeData("bs.modal");
    });
</script>

<div class="tab-pane active" id="horizontal-form">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true" aria-label="Close">×</button>
        <h5 class="modal-title"><?php echo $pageTitle;?></h5>
    </div>
    <form class="form-horizontal" name="form" id="form" action="index.php?c=<?php echo $_REQUEST['c'];?>&m=<?php echo $_REQUEST['m'];?>" name="form" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id"  id="id" value="<?php echo $res['utp_id']; ?>"/>
        <input type="hidden" name="submits" value="1"/>



        <div class="form-group">
            <label for="sex" class="col-sm-2 control-label">修改状态<span class="b_red">*</span></label>
            <div class="col-md-4">
                <label><input type="radio" name="status" id="status_0" value="0" <?php echo empty($res['status']) || $res['status'] == 0 ? 'checked' : ''; ?>/> 平台已领奖未填收货信息</label><br>
                <label><input type="radio" name="status" id="status_1" value="1" <?php echo $res['status'] == 1 ? 'checked' : ''; ?>/> 有收货信息可下单</label><br>
                <label><input type="radio" name="status" id="status_2" value="2" <?php echo $res['status'] == 2 ? 'checked' : ''; ?>/> 淘宝下单已完成</label>
            </div>
            <div class="col-sm-3">
                <p class="help-block"></p>
            </div>
        </div>


        <div class="modal-footer">
            <button type="reset" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" onclick="on_submit()" class="btn btn-primary">保存</button>
        </div>

    </form>
</div>